package com.etbsms.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "Etbsms_Country")
public class Country implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8963914401720660556L;
	
	private int seq_no;
	
	private CodeCountry country;
	private AgricultureAndFood agriculture_and_food;
	private int sort;
	
	@Id 
	@Column(name = "seq_no" ,nullable = false)
	@GeneratedValue(generator = "paymentableGenerator")       
	@GenericGenerator(name = "paymentableGenerator", strategy = "identity")  
	public int getSeq_no() {
		return seq_no;
	}
	public void setSeq_no(int seq_no) {
		this.seq_no = seq_no;
	}
	
	@ManyToOne
	@JoinColumn(name="CodeCountry_seqNo")
	public CodeCountry getCountry() {
		return country;
	}
	public void setCountry(CodeCountry country) {
		this.country = country;
	}
	
	@ManyToOne
	@JoinColumn(name="AgricultureAndFood_seqNo")
	public AgricultureAndFood getAgriculture_and_food() {
		return agriculture_and_food;
	}
	public void setAgriculture_and_food(AgricultureAndFood agriculture_and_food) {
		this.agriculture_and_food = agriculture_and_food;
	}
	
	@Column(name = "sort" ,nullable = false)
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
}
